<template>
    <div class="content_item">
       <div class="left">
            <input type="checkbox" v-model="item.checked" style="width: 30px; height: 30px;" />
            <img :src="item.pic" />
            <div class="text">
                <div class="title">{{ item.title }}</div>
                <van-stepper v-model="item.count" :min="1" button-size="50px" input-width="60px" />
            </div>
       </div>
        <div class="price">￥{{ item.price * item.num }}</div>
    </div>
</template>

<script>
    export default{
        props:['item']
    }
</script>

<style lang="less"> 
.content_item {
  padding: 10px;
  display: flex;
  justify-content: space-between;
//   margin-bottom: 10px;
  .price {
    font-size: 12px;
    font-weight: bold;
  }
  .left {
    display: flex;
    align-items: center;
    flex: 1;
    img {
      margin-left: 5px;
      width: 40px;
      height: 40px;
      margin-right: 5px;
      border-radius: 10px;
    }
    .text {
      display: flex;
      flex-flow: column;
      justify-content: space-between;
      height: 100%;
      position: relative;
      flex: 1;
        
      .van-stepper__input{
        font-size: 10px;
      }
      .title {
        font-size: 10px;
      }
      
    }
  }
}
</style>